package com.intelligence.openfeign.service.farm;

import com.intelligence.entity.pojo.Farm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author : RulerWood
 * @Data : 2024/6/7 - 14:02
 */
@FeignClient(name = "system-farm",contextId = "farm",path = "/system/farm")
public interface FarmFeignService {

    @GetMapping("/getFarmIdFromUserId/{userId}")
    public List<Farm> getFarmIdFromUserId(@PathVariable("userId") Integer userId);


}
